﻿<%@ Page Language="C#" MasterPageFile="~/Customer/MMcustomer.Master" AutoEventWireup="true"
    CodeBehind="Creceive.aspx.cs" Inherits="MobileManager.Customer.Creceive" Title="客户查询系统" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <table>
        <tr>
            <td>
                查询条件&nbsp;&nbsp;
            </td>
            <td style="text-align: right;">
                通道编号：
            </td>
            <td style="text-align: left;">
                <asp:TextBox ID="txtdestaddr" runat="server" CssClass="txtBoxNormal" MaxLength="20"></asp:TextBox>
            </td>
            <td style="text-align: right;">
                手机号：
            </td>
            <td style="text-align: left;">
                <asp:TextBox ID="txtsrcaddr" runat="server" CssClass="txtBoxNormal" MaxLength="20"></asp:TextBox>
            </td>
        </tr>
        <%--        <tr>
            <td>
            </td>
            <td style="text-align: right;">
                创建时间From：
            </td>
            <td style="text-align: left;">
                <input class="Wdate" id="inputDateFrom" name="inputDateStart" runat="server" type="text"
                    onclick="WdatePicker()" />
            </td>
            <td style="text-align: right;">
                To：
            </td>
            <td style="text-align: left;">
                <input class="Wdate" id="inputDateTo" name="inputDateStart" runat="server" type="text"
                    onclick="WdatePicker()" />
            </td>
        </tr>--%>
        <tr>
            <td colspan="5" align="center">
                <asp:DropDownList ID="ddlOrder" runat="server">
                    <asp:ListItem Value="destaddr" Text="通道号码" Selected="True"></asp:ListItem>
                    <asp:ListItem Value="srcaddr" Text="手机号"></asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddlAD" runat="server">
                    <asp:ListItem Value="ASC" Text="升序"></asp:ListItem>
                    <asp:ListItem Value="DESC" Text="降序" Selected="True"></asp:ListItem>
                </asp:DropDownList>
                <asp:Button ID="btnQuery" runat="server" Text="查 询" CssClass="button_green" Width="70px"
                    OnClick="btnQuery_Click" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnQueryAll" runat="server" Text="全部显示" CssClass="button_green" Width="70px"
                    OnClick="btnQueryAll_Click" />
            </td>
        </tr>
    </table>
    <br />
    <div>
        <div style="width: 50%; float: left; text-align: left; margin-left: 0px;">
            <asp:Label ID="lbCount" runat="server"></asp:Label>
        </div>
        <%--        <div style="width: 50%; text-align: right; float: right; margin-right: 20px;">
            <asp:Label ID="lbRnumAll" runat="server"></asp:Label>
        </div>--%>
    </div>
    <asp:GridView ID="GVinfo" runat="server" AutoGenerateColumns="False" CssClass="reason_box"
        Font-Size="12px" CellPadding="0" BorderWidth="0px" 
    BorderColor="#A6E1FF" Width="100%"
        AllowPaging="True" OnPageIndexChanging="GVinfo_PageIndexChanging" 
    PageSize="20" onrowdatabound="GVinfo_RowDataBound">
        <Columns>
            <%--                    <asp:TemplateField HeaderText="唯一标示">
                        <ItemTemplate>
                            <asp:Label ID="lblinkid" runat="server" Text='<%# Bind("linkid") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                        <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="通道号码">
                <ItemTemplate>
                    <asp:Label ID="lbdestaddr" runat="server" Text='<%# Bind("destaddr") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="通道指令">
                <ItemTemplate>
                    <asp:Label ID="lbmsg" runat="server" Text='<%# Bind("msg") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="通道价格(元)">
                <ItemTemplate>
                    <asp:Label ID="lbChannelPrice" runat="server" Text='<%# Bind("ChannelPrice") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="手机号">
                <ItemTemplate>
                    <asp:Label ID="lbsrcaddr" runat="server" Text='<%# Bind("srcaddr") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="条数">
                <ItemTemplate>
                    <asp:Label ID="lbsrcaddr" runat="server" Text='<%# Bind("Rnum") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            <span style="color: Red; font-weight: bold;">没有数据！</span>
        </EmptyDataTemplate>
    </asp:GridView>
</asp:Content>
